package com.rent.core.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author zn
 * @since 2025-03-04
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("menu_resource")
@ApiModel(value = "MenuResource对象", description = "MenuResource")
public class MenuResource implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("name")
    private String name;

    @TableField("menu_id")
    private Integer menuId;

    @TableField("icon")
    private String icon;

    @ApiModelProperty("位置(1.顶部功能2.列表功能3.底部批量功能)")
    @TableField("location")
    private Integer location;

    @ApiModelProperty("1.添加2.修改3.删除4.查看5.设置")
    @TableField("type")
    private Integer type;

    @ApiModelProperty("功能链接")
    @TableField("url")
    private String url;

    @ApiModelProperty("排序")
    @TableField("sort")
    private Integer sort;

    @ApiModelProperty("是否有效")
    @TableField("isvalid")
    private Boolean isvalid;

    @ApiModelProperty("显示状态0.不显示 1.显示")
    @TableField("show_status")
    private Integer showStatus;

    @ApiModelProperty("菜单功能描述")
    @TableField("description")
    private String description;

    @TableField("create_time")
    private Date createTime;
}
